package com.chwn.curiousdiary.api;

import com.chwn.harulib.mvp.rx.HttpResult;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;
import rx.Observable;

/**
 * Created by Myshikin on 2017/5/2.
 */

public interface IAccountApi {

    /**
     * playTime	播放时长	number	以秒为单位
     * storyId		    string
     * userToken		string
     * @return
     */
    @FormUrlEncoded
    @POST("app/story/storyPlayTimeStatist.action")
    Observable<HttpResult<Object>> storyPlayTimeStatist(
            @Field("storyId")   String storyId,
            @Field("userToken") String userToken,
            @Field("playTime")  long playTime ,
            @Field("totalTime")  long totalTime
    );

}
